//
//  EndLeaderIndexCell.m
//  Estate
//
//  Created by heyong on 16/9/6.
//  Copyright © 2016年 ttsx. All rights reserved.
//

#import "EndLeaderIndexCell.h"

@implementation EndLeaderIndexCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.leftView.hidden=YES;
}
- (void)setShowIcon:(NSString *)showIcon{
    if(![showIcon isEqualToString:@"show"]){
        self.rightImg.hidden=YES;
        self.imagerightConstraint.constant=-20.*BIZ;
        self.leftView.backgroundColor=[UIColor colorWithRed:0.14 green:0.71 blue:0.69 alpha:1.00];
    }else{
        self.leftView.backgroundColor=[UIColor colorWithRed:0.91 green:0.42 blue:0.28 alpha:1.00];

    }
}
+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *ID = @"detail";
    EndLeaderIndexCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (cell == nil) {
        cell = [[EndLeaderIndexCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:ID];
    }
    cell.selectionStyle=UITableViewCellSelectionStyleNone;
    cell.title.textColor=UIColorFromRGB(0x787878);
    cell.title.font=[UIFont systemFontOfSize:16*BIZ];
    return cell;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
